<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<head>

</head>
<body>
  <div >
      您已登陆超时,<span id="jumpTo">5</span>秒后或<a href="#" onclick="goLogin()">点击此处</a>跳转到登陆页面
  </div>
</body>
<script type="text/javascript">
function goLogin(){
  window.top.location.href="<%=request.getContextPath()%>/back/loginPage.do";

}
window.onload = function(){
  setTimeout(function(){
    "goLogin()"
  },5000);
  countDown(5,"<%=request.getContextPath()%>/back/loginPage.do");
}
function countDown(secs,surl){
  var jumpTo = document.getElementById('jumpTo');
  jumpTo.innerHTML=secs;
  if(--secs>0){
    setTimeout("countDown("+secs+",'"+surl+"')",1000);
  }
  else{
    window.top.location.href=surl;
  }
}
</script>
</html>
